import axios from 'axios';

const BASE_URL = 'http://localhost:8080';

export function getPapers(params) {
  return axios.get(`${BASE_URL}/paper/filter`, { params });
}

export function addPaper(data) {
  return axios.post(`${BASE_URL}/paper/add`, data);
}

export function updatePaper(data) {
  return axios.put(`${BASE_URL}/paper/update`, data);
}

export function deletePaper(id) {
  return axios.delete(`${BASE_URL}/paper/delete/${id}`);
}

export function auditPaper(id, status, rejectReason) {
  return axios.post(`${BASE_URL}/paper/audit`, { id, status, rejectReason });
} 